package web

import (
	"net/http"
	"errors"
)

func UserFilter(writer http.ResponseWriter, request *http.Request) error {
	request.ParseForm();
	strId := request.Form.Get("id")
	if strId == "" {
		return errors.New("用户未登录")
	}
	return nil
}
